package net.sudot.flow.dsl.model;


import groovy.lang.Closure;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.http.HttpMethod;

/**
 * 发送器
 *
 * @author tangjialin on 2020-03-13.
 */
@Getter
@Setter
@Accessors(chain = true)
public class Send extends AbstractObject {
    private boolean async = false;
    private int retry = 0;
    private HttpMethod method = HttpMethod.POST;
    private String host;
    private String path;
    private Closure<Object> request;
    private Closure<Object> response;
    private Closure<String> next;
    private Closure<String> fail;
}
